package com.car.serve.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.car.serve.Param.addServeParam;
import com.car.serve.Param.reviseServeParam;
import com.car.serve.dto.ServeDto;
import com.car.serve.dto.ServeInfoDto;
import com.car.serve.entity.ServeInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.car.serve.exception.ServeException;
import com.car.serve.form.PageServeForm;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
public interface ServeInfoService extends IService<ServeInfo> {

    void addServe(addServeParam param)throws Exception;

    void reviseServe(reviseServeParam param)throws Exception;

    void disableServe(Integer serveId)throws Exception;

    void enableServe(Integer serveId)throws Exception;
    Page<ServeInfo> findServePage(PageServeForm form);

    void delServe(Integer serveId)throws ServeException;

    ServeInfoDto findById(Integer serveId)throws Exception;

    void changeServeScore(ServeDto serveDto);
}
